package cn.itsource.basic.query;

import lombok.Data;

/**
 * 基础的查询条件类
 */
@Data
public class BaseQuery {
    //分页数据作为查询条件要传递过去
    //当前页
    private Integer currentPage = 1;
    //每页显示多少条
    private Integer pageSize = 10;

    //关键字查询
    private String keyword;

    public Integer getStart(){
        //0(currentPage-1)*pageSize 10
        //10 10
        //20 10

        return (this.currentPage-1)*this.pageSize;

    }
}
